@import "../global/mixin.less";

nav {
  width: 100%;
  height: @nav-height;

  .nav-wrapper-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: @nav-height;
    width: 100%;
    overflow: hidden;
    background-image: linear-gradient(
      to left,
      #1aad19,
      #1daa28,
      #21a834,
      #26a53d,
      #2ba245
    );
    z-index: 110;
    color: #fff;

    .nav-wrapper {
      .margin-center(90%);
      height: 100%;
      position: relative;
      display: flex;
      z-index: 111;

      .show-menu-btn-wrapper {
        position: absolute;
        left: 30px;
        top: 0;
        height: 100%;
        width: @icon-width;

        .menu-btn {
          // 在套一层：.center()的display与响应式的类冲突
          width: 100%;
          height: 100%;
          .center();

          .iconliebiao {
          }
        }
      }

      .logo-wrapper {
        // pc端需要的，移动端要取消
        margin-left: 30px;
        .center();

        a {
          .center();
          line-height: @nav-height;
          color: #fff;

          .logo-img {
            width: 30px;
            height: 30px;
          }

          .logo-text {
            margin-left: 5px;
            font-size: 22px;
          }
        }
      }

      .menu-wrapper {
        position: absolute;
        right: 64px;
        top: 0;
        height: 100%;
        align-items: center;

        #menu {
          height: 100%;
          margin-right: 20px;
          .center();

          .menu-item {
            display: inline;
            padding: 0 8px;

            span {
            }

            a {
              color: inherit;
            }
          }
        }
      }

      .search-wrapper {
        position: absolute;
        right: 30px;
        top: 0;
        width: @icon-width;
        height: 100%;
        .center();

        .iconsearch {
        }
      }
    }
  }
}

.nav-empty {
  height: @nav-height;
  width: 100%;
}

@import "../widget/local-search.less";

@media only screen and (max-width: 991px) {
  .logo-wrapper {
    flex: 1;
    margin-left: 0 !important;
  }

  .show-menu-btn-wrapper {
    left: 0 !important;
  }

  .search-wrapper {
    right: 0 !important;
  }
}
